package sv.com.renacempleo.dto.red;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import sv.com.renacempleo.dto.ctg.CtgCatalogo;
import sv.com.renacempleo.dto.ctg.CtgDetalleHabilidades;

@Entity
@Table(name = "red_oferta_habilidad")
public class RedOfertaHabilidad implements Serializable{

	private static final long serialVersionUID = 5342106481501066598L;
	
	@Id
	@Column(name = "red_ohab_id", nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long redOfertaHabilidadId;
	@ManyToOne
	@JoinColumn(name = "red_ofe_id", nullable = false)
	private RedOferta redOferta;
	@ManyToOne
	@JoinColumn(name = "ctg_hab_id", nullable = false)
	private CtgCatalogo ctgHabilidad;
	@ManyToOne
	@JoinColumn(name = "ctg_adhab_id", nullable = false)
	private CtgDetalleHabilidades ctgDetalleHabilidades;
	
	public Long getRedOfertaHabilidadId() {
		return redOfertaHabilidadId;
	}
	public void setRedOfertaHabilidadId(Long redOfertaHabilidadId) {
		this.redOfertaHabilidadId = redOfertaHabilidadId;
	}
	public RedOferta getRedOferta() {
		return redOferta;
	}
	public void setRedOferta(RedOferta redOferta) {
		this.redOferta = redOferta;
	}
	public CtgCatalogo getCtgHabilidad() {
		return ctgHabilidad;
	}
	public void setCtgHabilidad(CtgCatalogo ctgHabilidad) {
		this.ctgHabilidad = ctgHabilidad;
	}
	public CtgDetalleHabilidades getCtgDetalleHabilidades() {
		return ctgDetalleHabilidades;
	}
	public void setCtgDetalleHabilidades(CtgDetalleHabilidades ctgDetalleHabilidades) {
		this.ctgDetalleHabilidades = ctgDetalleHabilidades;
	}
}
